package com.matrix.review.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.matrix.api.review.dto.ShopAvgRatingDTO;
import com.matrix.review.entity.Review;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 有点甜
 * @since 2025/7/27
 */
@Mapper
public interface ReviewMapper extends BaseMapper<Review> {

    ShopAvgRatingDTO calculateAverageRatingsByShopId(Long shopId);

}
